home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _13DB220B0D15437FACF4B9CD116707FB < prev    next >
Encoding:
Text File  |  2004-06-24  |  777 b   |  32 lines

  1. shader()
  2. {
  3.     cull("ccw")
  4.     pass()
  5.     {
  6.         tmu()
  7.         {
  8.             TexGen("planar")
  9.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  10.             texture()
  11.             {
  12.                 Image(%colortexture)
  13.                 addressfunc("clamp", "clamp", "clamp")
  14.             }
  15.         }
  16.         tmu()
  17.         {
  18.             TexGen("planar")
  19.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  20.             texture()
  21.             {
  22.                 Image("Road.dds")
  23.                 addressfunc("clamp", "clamp", "clamp")
  24.             }
  25.             ColorOp("blend_factor_alpha", "texture", "current", "current")
  26.         }
  27.         tfactor(1, 1, 1, 0.5)
  28.  
  29.     }
  30. }
  31.  
  32.